<ui:composition xmlns="http://www.w3.org/1999/xhtml"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:c="http://java.sun.com/jstl/core"
     xmlns:fmt="http://java.sun.com/jstl/fmt"
     xmlns:x="http://java.sun.com/jstl/xml"
     xmlns:fn="http://java.sun.com/jstl/functions"
     xmlns:a4j="http://richfaces.org/a4j"
     xmlns:rich="http://richfaces.org/rich"
     xmlns:gape="http://componentes.gape/component/gape">
     
	<rich:modalPanel id="panelError" autosized="true" keepVisualState="false" headerClass="headerModal" width="200" height="150">
		<f:facet name="controls">
           <h:panelGroup>
               <h:graphicImage value="/files/close.png" styleClass="hidelink" id="hidelinkPanelError"/>
               <rich:componentControl for="panelError" attachTo="hidelinkPanelError" operation="hide" event="onclick"/>
           </h:panelGroup>
       	</f:facet>		
		<f:facet name="header">
			<h:outputText value="#{msg.titlePanelError}" />
		</f:facet>
		<a4j:form>
			<h:panelGrid columns="1" columnClasses="label" footerClass="FormLinhaBotoes">
				<h:outputText value="#{msg.saveError}" />
				
				<f:facet name="footer">
					<h:panelGroup>
						<h:commandButton action="#{navigation.navega}" value="#{msg.buttonYes}">
							<f:setPropertyActionListener value="#{false}" target="#{navigation.validaSalvar}" />
						</h:commandButton>
						<a4j:commandButton action="#" value="#{msg.buttonNo}" oncomplete="javascript:Richfaces.hideModalPanel('panelError');"/>
					</h:panelGroup>
				</f:facet>
			</h:panelGrid>
		</a4j:form>
	</rich:modalPanel>
</ui:composition>